<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
    <style type="text/css">
#div1{
	width: 100px;height: 100px;background: red;position: absolute;left: 50px;top: 50px;
}

#div2{
	width: 100px;height: 100px;background: black;position: absolute;left: 350px;top: 50px;
}


    </style>
</head>
<body>
<div id='div1'></div>
<div id='div2'></div>
<script type="text/javascript">
	var a = function(){

	};
	//a();
	//alert(a);

	div1.onclick = function(){
		//alert(1);
		//this.a = 10;
		//alert(1);
	};

	//alert.apply(window,[2311]);
	div2.onclick = function(){
		//div1.onclick();
		//a();
	}
//	alert(div1.onclick);
	//div1.onclick();
	//div2.onclick = div1.onclick;
	//function(){
		//div1.onclick()
//	};
</script>
</body>
</html>